//
// Created by wze-zero on 2024/9/16 016.
//
#include <iostream>

using namespace std;

int main() {
    int num[10];
    for (int i = 0; i < sizeof(num) / sizeof(num[0]); ++i) {
        cin >> num[i];
    }
    for (int i = sizeof(num) / sizeof(num[0]) - 1; i > -1; --i) {
        cout << num[i] << " ";
    }
    cout << endl;
    return 0;
}